﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CoolChat.Alert
{
    public class Alert
    {
        private string msg;

        public string Msg
        {
            get { return msg; }
            set { msg = value; }
        }

        private Option option;

        public Option Option
        {
            get { return option; }
            set { option = value; }
        }

    }

    public  class Option
    {
        private  string icon_url;

        public  string Icon_url
        {
            get { return icon_url; }
            set { icon_url = value; }
        }
        private  string msg_id;

        public  string Msg_id
        {
            get { return msg_id; }
            set { msg_id = value; }
        }
        private  int show_time;

        public  int Show_time
        {
            get { return show_time; }
            set { show_time = value; }
        }
        private  int flash_time;

        public  int Flash_time
        {
            get { return flash_time; }
            set { flash_time = value; }
        }
        private  string icon_title;

        public  string Icon_title
        {
            get { return icon_title; }
            set { icon_title = value; }
        }
        private int type = (int)CoolChat.AlertOption.Type.error;

        public  int Type
        {
            get { return type; }
            set { type = value; }
        }
        private string icon_size = CoolChat.AlertOption.IconSize.d;

        public  string Icon_size
        {
            get { return icon_size; }
            set { icon_size = value; }
        }
        private  int position = (int)CoolChat.AlertOption.Position.broswer;

        public  int Position
        {
            get { return position; }
            set { position = value; }
        }
    }
}
namespace CoolChat.AlertOption
{
    public enum Type
    {
        error = 0, //全局用 错误 信息
        success = 1, //全局用 成功 信息
        info = 2, //全局用 信息 信息
        msgError = 3, //发送信息错误
        msgSuccess = 4 //发送信息成功
    }
    public enum Position
    {
        top = 0,
        foot = 1,
        msg = 2,
        broswer = 3//使用 浏览器 alert()
    }
    public static class IconSize
    {
        public static string x16 = "16x16",
        x24 = "24x24",
        x32 = "32x32",
        x64 = "64x64",
        d = "24x24";
    }
}